<?php
namespace app\admin\controller;

use app\common\model\UserGroup;
use think\facade\View;

class Group
{
	public function index ()
	{	
		$list = UserGroup::select();
		View::assign('group', $list);
		return View::fetch('group/index');
	}

	/**
	 * 
	 * 
	 */
	public function list ()
	{
		$list = UserGroup::select();

		dump($list);

		return table_data(0, '', $list);
		// return json(['code' => 200, 'data' => $list, 'message' => "success"]);
	}
}